import { createStore } from 'redux'
import Reducer from './reducers/index.js'
import { persistStore, persistReducer } from 'redux-persist'
import storage from 'redux-persist/lib/storage'

const persistConfig = {
  key: 'root',
  storage,
	blacklist: ['LoadingReducer']
}
const persistedReducer = persistReducer(persistConfig, Reducer)
const store = createStore(persistedReducer)
const persistor = persistStore(store)
export {store, persistor}